package com.corpgovernment.permission.entity.db;

import com.corpgovernment.common.annotation.OperateLogFieldDesc;
import com.corpgovernment.common.entity.db.BaseEntity;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @author ：xks
 * @date ：Created in 2022/7/19 18:36
 * @description：
 * @modified By：
 * @version: $
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "mb_role_resource")
public class MbRoleResource extends BaseEntity {

    /**
     * 角色
     */
    @Column(name = "role_id")
    @OperateLogFieldDesc(value = "角色")
    private Long roleId;


    /**
     * 角色
     */
    @Column(name = "resource_id")
    @OperateLogFieldDesc(value = "部门")
    private Long resourceId;

    /**
     *  type
     */
    @Column(name = "type")
    @OperateLogFieldDesc(value = "资源类型(1.部门  2.菜单 3.开票)")
    private Integer type;

    /**
     * 删除时间，1970-01-01 08:00:00.000代表未删除
     **/
    @Column(name = "delete_time")
    private java.util.Date deleteTime;
}
